Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjusted various function signatures to return Array #3340

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

fubhy
Copy link
Member

@fubhy fubhy commented Jul 25, 2024

Effect.forEach should probably also return Array<A> instead.

Copy link

changeset-bot bot commented Jul 25, 2024

🦋 Changeset detected

Latest commit: 0c2735d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@effect/platform Major
effect Minor
@effect/cli Major
@effect/rpc Major
@effect/cluster-browser Major
@effect/cluster-node Major
@effect/cluster Major
@effect/experimental Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/rpc-http Major
@effect/sql-d1 Major
@effect/sql-mssql Major
@effect/sql-mysql2 Major
@effect/sql-pg Major
@effect/sql-sqlite-bun Major
@effect/sql-sqlite-node Major
@effect/sql Major
@effect/cluster-workflow Major
@effect/opentelemetry Major
@effect/printer-ansi Major
@effect/printer Major
@effect/schema Major
@effect/sql-drizzle Major
@effect/sql-sqlite-react-native Major
@effect/sql-sqlite-wasm Major
@effect/typeclass Major
@effect/vitest Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jul 25, 2024

Good news @fubhy, your snapshot has been published!

You can review the build log here.

Commit: e885cd6

Packages:

@effect/cli:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/cli@e885cd6

@effect/cluster:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/cluster@e885cd6

@effect/cluster-browser:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/cluster-browser@e885cd6

@effect/cluster-node:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/cluster-node@e885cd6

@effect/cluster-workflow:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/cluster-workflow@e885cd6

effect:

pnpm add https://pkg.pr.new/Effect-TS/effect@e885cd6

@effect/experimental:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/experimental@e885cd6

@effect/opentelemetry:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/opentelemetry@e885cd6

@effect/platform:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/platform@e885cd6

@effect/platform-browser:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/platform-browser@e885cd6

@effect/platform-bun:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/platform-bun@e885cd6

@effect/platform-node:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/platform-node@e885cd6

@effect/platform-node-shared:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/platform-node-shared@e885cd6

@effect/printer:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/printer@e885cd6

@effect/printer-ansi:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/printer-ansi@e885cd6

@effect/rpc:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/rpc@e885cd6

@effect/rpc-http:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/rpc-http@e885cd6

@effect/schema:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/schema@e885cd6

@effect/sql:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql@e885cd6

@effect/sql-d1:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-d1@e885cd6

@effect/sql-drizzle:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-drizzle@e885cd6

@effect/sql-mssql:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-mssql@e885cd6

@effect/sql-mysql2:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-mysql2@e885cd6

@effect/sql-pg:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-pg@e885cd6

@effect/sql-sqlite-bun:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-sqlite-bun@e885cd6

@effect/sql-sqlite-node:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-sqlite-node@e885cd6

@effect/sql-sqlite-react-native:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-sqlite-react-native@e885cd6

@effect/sql-sqlite-wasm:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/sql-sqlite-wasm@e885cd6

@effect/typeclass:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/typeclass@e885cd6

@effect/vitest:

pnpm add https://pkg.pr.new/Effect-TS/effect/@effect/vitest@e885cd6

@mikearnaldi
Copy link
Member

import { Effect } from "effect"

const res = Effect.forEach([0, 1, 2], (n) => Effect.succeed(n))
// Effect.Effect<number[], never, never>

Seems like it does

@fubhy
Copy link
Member Author

fubhy commented Jul 25, 2024

import { Effect } from "effect"

const res = Effect.forEach([0, 1, 2], (n) => Effect.succeed(n))
// Effect.Effect<number[], never, never>

Seems like it does

Ah yeah. I was confused by the Effect<RA.ReadonlyArray.With<S, B>, E, R> and didn't check to see what that actually resolves to.

@github-actions github-actions bot changed the base branch from main to next-minor July 25, 2024 22:47
@tim-smart tim-smart merged commit c3d7de6 into next-minor Jul 25, 2024
11 checks passed
@tim-smart tim-smart deleted the array-return-types branch July 25, 2024 22:53
@github-actions github-actions bot mentioned this pull request Jul 25, 2024
github-actions bot pushed a commit that referenced this pull request Jul 25, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 27, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 28, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 28, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 28, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
tim-smart added a commit that referenced this pull request Jul 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 30, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Jul 30, 2024
Co-authored-by: Tim <hello@timsmart.co>
tim-smart added a commit that referenced this pull request Jul 30, 2024
Co-authored-by: Tim <hello@timsmart.co>
@github-actions github-actions bot mentioned this pull request Jul 30, 2024
tim-smart added a commit that referenced this pull request Jul 30, 2024
Co-authored-by: Tim <hello@timsmart.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants